body {
    margin: 0;
    padding: 0;
    color: #776e65;
    background: #faf8ef;
}

.header {
    padding: 0px 20px;
    margin: 0 auto;
    max-width: 500px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h1 {
    margin: 0px;
    color: #776e65;
    font-size: 70px;
}

#newgamebutton {
    background: #8f7a66;
    border-radius: 3px;
    padding: 0 20px;
    text-decoration: none;
    color: #f9f6f2;
    font-weight: bold;
    height: 40px;
    line-height: 42px;
    display: inline-block;
}

.sc {
    position: relative;
    background: #bbada0;
    padding: 15px 25px;
    font-size: 25px;
    height: 25px;
    line-height: 47px;
    font-weight: bold;
    border-radius: 3px;
    color: white;
    display: inline-block;
}

.sc::after {
    content: '分数';
    width: 100%;
    top: 10px;
    left: 0;
    font-size: 13px;
    line-height: 13px;
    text-align: center;
    color: #eee4da;
    position: absolute;
}

.sty2048 {
    color: #776e65;
    font-size: 20px;
}

.sty2048 span {
    font-weight: bold;
}

#grid-container {
    width: 460px;
    height: 460px;
    padding: 20px;
    margin: 50px auto;
    background-color: #bbada0;
    border-radius: 10px;
    position: relative;
}

.game-message {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(238, 228, 218, .5);
    z-index: 100;
    text-align: center;
}

.game-message p {
    font-size: 60px;
    font-weight: 700;
    height: 60px;
    line-height: 60px;
    margin-top: 222px;
}


.grid-cell {
    width: 100px;
    height: 100px;
    border-radius: 6px;
    background-color: #ccc0b3;
    position: absolute;
}

/* 设置随机数的样式 */
.number-cell {
    border-radius: 6px;
    font-weight: bold;
    font-size: 40px;
    line-height: 100px;
    text-align: center;
    position: absolute;
}

.retry-button {
    display: inline-block;
    background: #8f7a66;
    border-radius: 3px;
    padding: 0 20px;
    text-decoration: none;
    color: #f9f6f2;
    height: 40px;
    line-height: 42px;
    margin-left: 9px;
    cursor: pointer;
}